package com.chwn.curiousdiary.utils;

import android.widget.Toast;

import com.chwn.curiousdiary.DiaryApplication;

/**
 * Created by Myshikin on 2017/4/6.
 */
public class CustomToast {

    private static Toast mToast;

    public static void showShortToast(String text) {
        if (mToast == null) {
            mToast = Toast.makeText(DiaryApplication.mInstance, "text", Toast.LENGTH_SHORT);
        }
        mToast.setText(text);
        mToast.show();
    }
}
